home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
c
/
cuj9205.zip
/
1005075A
< prev
next >
Wrap
Text File
|
1992-06-02
|
370b
|
19 lines
/*
* Stack abstraction example header file
*/
#define STACK_SIZE 10
typedef struct {
char *stk_magic; /* stack magic number */
int stk_top; /* top of stack index */
void *stk_stack[STACK_SIZE]; /* actual stack storage */
} STK;
STK *StkConstruct();
void StkDestroy(STK*);
void StkPush(STK*, void*);
void *StkPop(STK*);
int StkIsEmpty(STK*);